import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import member from '@/components/member'
import shopcar from '@/components/shopcar'
import search from '@/components/search'
import newslist from '@/components/news/newslist'
import newsinfo from '@/components/news/newsinfo'
import goodlist from '@/components/goods/goodlist'
import goodsinfo from '@/components/goods/goodsinfo'
import goodsdesc from '@/components/goods/goodsdesc'
import goodscomment from '@/components/goods/goodscomment'
import photolist from '@/components/photo/photolist'
import photoinfo from '@/components/photo/photoinfo'


Vue.use(Router)

export default new Router({
  linkActiveClass: 'mui-active',
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/home',
      component: Home
    },
    {
      path: '/member',
      component: member
    },
    {
      path: '/shopcar',
      component: shopcar
    },
    {
      path: '/search',
      component: search
    },
    {
      path: '/news/newslist',
      component: newslist
    },
    {
      path: '/news/newsinfo/:id',
      component: newsinfo
    },
    {
      path: '/goods/goodlist',
      component: goodlist
    },
    {
      path: '/goods/goodsinfo/:id',
      component: goodsinfo
    },
    {
      path: '/goods/goodsdesc/:id',
      component: goodsdesc
    },
    {
      path: '/goods/goodscomment/:id',
      component: goodscomment
    },
    {
      path: '/photo/photolist',
      component: photolist
    },
    {
      path: '/photo/photoinfo/:id',
      component: photoinfo
    }
  ]
})
